package com.elong.businesstravel.modules.home.dialog;

import com.elong.businesstravel.R;

import android.app.Dialog;
import android.content.Context;
import android.view.Gravity;
import android.view.View;
import android.widget.Button;
/**
 * 返现金提示对话框
 * @author lenovo
 *
 */
public class BounsDescDialog extends Dialog {
	
	private Context mContext;

	public BounsDescDialog(Context context) {
		super(context);
		init(context);
	}

	public BounsDescDialog(Context context, int theme) {
		super(context, theme);
		init(context);
	}

	public BounsDescDialog(Context context, boolean cancelable,
			OnCancelListener cancelListener) {
		super(context, cancelable, cancelListener);
		init(context);
	}
	
	private void init(Context context) {
		getWindow().setGravity(Gravity.BOTTOM);
		
		mContext = context;
		setContentView(R.layout.dialog_bouns_desc);
		
		Button cancelButton = (Button)findViewById(R.id.cancelButton);
		cancelButton.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View arg0) {
				cancel();
			}
		});
		
		setCanceledOnTouchOutside(true);
	}

}
